package com.kevin.enterprise.service.impl;

import com.kevin.enterprise.dao.StudentDao;
import com.kevin.enterprise.entity.Student;
import com.kevin.enterprise.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao = new StudentDao();
    @Override
    public List<Student> studentList() {
        return studentDao.studentList();
    }

    @Override
    public boolean AddByOne(Student student) {
        return studentDao.addByOne(student);
    }

    @Override
    public boolean deleteByOne(String sno) {
        return studentDao.delectByID(sno);
    }

    @Override
    public Student updateByOne(String sno) {
        return studentDao.updateByOne(sno);
    }

    @Override
    public boolean modifyStudent(Student student) {
        return studentDao.modifystudent(student);
    }
}
